import $http from './http'
// 获取热点搜索列表
export function getHotList(data){
    return $http({
        url:`/ajax.do?method=ajaxAction&managerName=indexAjaxManager`,
        method:'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
        },
    })
}
// 全文检索查询页面
export function getSearch(data){
    return $http({
        url:`/index/indexController.do?method=searchIndex&searchKeyword=${data}&portalId=-2087679112504391655`,
        method:'get',
    })
}

// 获取首页外链
export function getHomeLink(){
    return $http({
        url:`/rest/homePage/getUrlList`,
        method:'get'
    })
}

// 获取导航栏测试版名
export function getNavName(){
    return $http({
        url:`/rest/jssdk/loginPage/getName`,
        method:'get'
    })
}